<!--
 * @Author: your name
 * @Date: 2022-01-13 11:56:54
 * @LastEditTime: 2022-01-13 15:25:13
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \新建文件夹 (3)\Untitled-1.html
-->
<!--
 * @Author: your name
 * @Date: 2022-01-13 11:56:54
 * @LastEditTime: 2022-01-13 11:56:54
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \新建文件夹 (3)\Untitled-1.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
.list{
    width: 960px;
    margin: 0 auto;
}
.list ul{
    width: 100%;
}
.list ul li{
    width: 450px;
    height: 238px;
    float: left;
    margin: 15px 15px;
    list-style: none;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.list ul li:hover img{
    transform: scale(1.1);
}
.list ul li img{
    width: 450px;
    height: 238px;
    border-radius: 10px;
}
.list ul li .txt{
    width: 95%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    padding-left: 5%;
    display: flex;
    flex-direction:column;
    justify-content: space-around;
    border-radius: 10px;
}
.list ul li .txt h2{
    font-size: 24px;
}
.list ul li .txt p{
    font-size: 16px;
}
.list ul li .txt a{
    font-size: 18px;
    color: white;
    text-decoration: none;
    width: 150px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: violet;
    display: inline-block;
}
    </style>
</head>
<body>
    <div class="list">
        <ul>
            <li>
                <a href="#">
                    <img src="img\22.jpg" alt="">
                </a>
                <div class="txt">
                    <h2>Packed RO water</h2>
                    <p>Water is an inRO water, transparent, tasteless, odorless, and nearly colorless</p>
                    <a href="#">SHOP NOW</a>
                </div>
            </li>
            <li>
                <a href="#">
                     <img src="img\32.jpg" alt="">
                </a>
                <div class="txt">
                    <h2>Worth of water</h2>
                    <p>Water is an inRO water, transparent, tasteless, odorless, and nearly colorless</p>
                    <a href="#">SHOP NOW</a>
                </div>
            </li>
            <li>
                <a href="#">
                    <img src="img\83.jpg" alt="">
                </a>
                <div class="txt">
                    <h2>Water conserve life</h2>
                    <p>Water is an inRO water, transparent, tasteless, odorless, and nearly colorless</p>
                    <a href="#">SHOP NOW</a>
                </div>
            </li>
            <li>
                <a href="#">
                    <img src="img\92.jpg" alt="">
                </a>
                <div class="txt">
                    <h2>Worth of water</h2>
                    <p>Water is an inRO water, transparent, tasteless, odorless, and nearly colorless</p>
                    <a href="#">SHOP NOW</a>
                </div>
            </li>
        </ul>
    </div>
</body>
</html>